<%@ page language="java" import="control.database.*" pageEncoding="gb2312"%>

<%
Users users = new Users();

System.out.println("1111111");

users.setUserid(request.getParameter("txtUserid").toString());
users.setusername(new String(request.getParameter("txtUsername").toString().getBytes("ISO8859_1")));
users.setUserpassword(request.getParameter("txtPassword").toString());
users.setUsertype(request.getParameter("type").toString());
users.setUserstatus(request.getParameter("txtUserstatus").toString());
users.setUsercontact1(request.getParameter("txtUsercontact1").toString());
users.setUsercontact2(request.getParameter("txtUsercontact2").toString());
users.setUseremail(request.getParameter("txtUseremail").toString());
users.setUserdptid(request.getParameter("txtUserdptid").toString());

System.out.println("2222");

users.Users_Add();

System.out.println("00000");

response.sendRedirect("AddSuccessful.jsp");
%>

